package com.itcoon.demo.web.controller.i18n;/**
 * @author Athric Yu
 * 2024/11/27
 **/

import com.itcoon.cloud.framework.webmvc.request.ApiRequest;
import com.itcoon.cloud.framework.webmvc.response.ApiResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author Athric Yu
 * 2024/11/27
 **/
@Tag(name = "I18N国际化")
@RequestMapping("i18ns")
@RestController
public class I18nController {

    @Operation(summary = "参数校验，国际化提示")
    @PostMapping("/parameter")
    public ApiResponse<Void> validateParameter(@RequestBody @Validated ApiRequest<ParameterReqVO> request){
        return ApiResponse.ok();
    }
}
